// 创建一个 Icon 展示控件
import 'package:flutter/material.dart';

class NavigationData {
  final BottomNavigationBarItem item;

  // 标题
  final String title;

  // 图标
  final String icon;

  // 选中图标
  final String activeIconPath;

  NavigationData(this.title, this.icon, this.activeIconPath)
      : item = BottomNavigationBarItem(
          icon: Image.asset(
            icon,
            width: 20,
            height: 20,
          ),
          label: title,
          // 选中状态
          activeIcon: Image.asset(
            activeIconPath,
            width: 22,
            height: 22,
          ),
        );
}
